package abstractFactoryPattern;

public class Test {
    
	
	
	public static void main(String[] args) {
		
		//AbstractFactory sinifini implemente eden
		//ConcreteFactoryImpl sinifi kullaniliyor...
		AbstractFactory factory = new ConcreteFactoryImpl();
		Elma elma = factory.getElma();
		Biber biber=factory.getBiber();
		System.out.println(elma.getType());
		System.out.println(biber.getType());
		
		//AbstractFactory sinifini implemente eden
		//ConcreteFactoryImpl2 sinifi kullaniliyor...
		factory= new ConcreteFactoryImpl2();
		elma=factory.getElma();
		biber=factory.getBiber();
		System.out.println(elma.getType());
		System.out.println(biber.getType());
		
	}
}
